<%@ page import="support.*, java.util.*, java.sql.*, javax.sql.*" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %> 
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>

<jsp:include page="header.jsp" />

	<div id="content" class="expand">
		<h2>Graduate Application</h2>
		
		<div style="color:red;"><html:errors/></div>
		
		<html:link action="chair/startReview">Start review proccess</html:link>
		
		<p>Entered Reviewers:</p>
		
		<ul>
		<%
		Vector reviewers = (Vector)session.getAttribute("reviewers");
		for (int i = 0; i < reviewers.size(); i++) {
			out.print("<li>");
			HashMap currentRev = (HashMap)reviewers.get(i);
			
			out.print(currentRev.get("userName") + " - "
					+ "<a href='deleteReviewer.do?reviewer=" + currentRev.get("userName") + "'>delete</a>");
			
			out.print("</li>");
		}
		%>
		</ul>
		
		<p>Add Another Reviewer:</p>
		
		<html:form action="chair/insertReviewer">
			User Name: <html:text property="reviewer" /> Password: <html:text property="password" />
			<html:submit value="Submit"/>
		</html:form>
		
	</div>

</body>
</html>